PROJECT(ttlprinter)
 
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -O0 -g -Wno-unused-but-set-variable -Wno-int-to-pointer-cast -Wno-pointer-to-int-cast -Wno-unused-function -Wno-unused-variable -lm")
 
include("Gengetopt.cmake")                                                
ADD_GENGETOPT_FILES(CMDLINE cmdline.ggo) 

AUX_SOURCE_DIRECTORY(. DIR_SRCS)

ADD_EXECUTABLE(ttlprinter ${CMDLINE} ${DIR_SRCS})

install(TARGETS ttlprinter DESTINATION bin)
